home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / cc1.sparc / RCS / local.mk,v < prev   
Text File  |  1990-02-16  |  4KB  |  158 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.2
  10. date     90.02.16.13.44.26;  author rab;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     89.12.14.16.51.26;  author rab;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24. 1.2
  25. log
  26. @ Install in /sprite/lib/gcc instead of /sprite/cmds.
  27. @
  28. text
  29. @#
  30. # This file is included by Makefile.  Makefile is generated automatically
  31. # by mkmf, and this file provides additional local personalization.  The
  32. # variable SYSMAKEFILE is provdied by Makefile;  it's a system Makefile
  33. # that must be included to set up various compilation stuff.
  34. #
  35.  
  36. CFLAGS          += -O -I../cc/sprite -I../cc/dist
  37.  
  38.  
  39. #if !empty(TM:Msun2)
  40. CFLAGS          += -DTARGET_SUN2
  41.  
  42. #elif !empty(TM:Msun2)
  43. CFLAGS          += -DTARGET_SUN3
  44.  
  45. #elif !empty(TM:Msun4)
  46. CFLAGS          += -DTARGET_SUN4 -D__sparc__
  47.  
  48. #elif !empty(TM:Mspur)
  49. CFLAGS          += -DTARGET_SPUR
  50.  
  51. #endif
  52.  
  53. #
  54. # Must add to OBJS for .c files generated below, since the .c files may
  55. # not exist at the time mkmf is run to generate OBJS automatically.
  56. #
  57. OBJS        += $(TM).md/insn-emit.o $(TM).md/insn-extract.o \
  58.         $(TM).md/insn-output.o $(TM).md/insn-peep.o \
  59.         $(TM).md/insn-recog.o
  60. CLEANOBJS    += $(TM).md/insn-emit.o $(TM).md/insn-extract.o \
  61.         $(TM).md/insn-output.o $(TM).md/insn-peep.o \
  62.         $(TM).md/insn-recog.o insn-emit.c insn-extract.c \
  63.         insn-output.c insn-peep.c insn-recog.c \
  64.         $(TM).md/gencodes $(TM).md/genconfig $(TM).md/genemit \
  65.         $(TM).md/genextract $(TM).md/genflags $(TM).md/genoutput \
  66.         $(TM).md/genpeep $(TM).md/genrecog
  67.  
  68. #
  69. # Don't automatically back up Gcc stuff:  want to make sure the
  70. # backup version is VERY reliable and don't want two quick buggy
  71. # changes to result in unusable backup.
  72. #
  73. NOBACKUP    = true
  74.  
  75. #include    <$(SYSMAKEFILE)>
  76.  
  77.  
  78. #
  79. # Use headers from the main gcc area, including both stuff from
  80. # the distribution and stuff that's been modified specially for Sprite.
  81. #
  82. .PATH.h        : ../cc/sprite ../cc/dist
  83.  
  84. #
  85. # Target to make various utility programs.  Must run a separate make
  86. # to do this, because the utilities must be compiled to run on $(MACHINE),
  87. # the current machine, instead of $(TM), the machine that the new version
  88. # of the compiler will run on.
  89. #
  90. # MACHINE        ?= sun3
  91.  
  92. utils        : .MAKE .EXEC
  93.     $(MAKE) TM=$(MACHINE) -l $(PASSVARS) -f utils.mk all
  94.  
  95. #
  96. # Targets to create a bunch of source files from the machine
  97. # description.
  98. #
  99. insn-codes.h : md $(MACHINE).md/gencodes
  100.     rm -f insn-codes.h
  101.     $(MACHINE).md/gencodes md > insn-codes.h
  102.  
  103. insn-config.h : md $(MACHINE).md/genconfig
  104.     rm -f insn-config.h
  105.     $(MACHINE).md/genconfig md > insn-config.h
  106.  
  107. insn-emit.c : md $(MACHINE).md/genemit
  108.     rm -f insn-emit.c
  109.     $(MACHINE).md/genemit md > insn-emit.c
  110.  
  111. insn-extract.c : md $(MACHINE).md/genextract
  112.     rm -f insn-extract.c
  113.     $(MACHINE).md/genextract md > insn-extract.c
  114.  
  115. insn-flags.h : md $(MACHINE).md/genflags
  116.     rm -f insn-flags.h
  117.     $(MACHINE).md/genflags md > insn-flags.h
  118.  
  119. insn-output.c: md $(MACHINE).md/genoutput
  120.     rm -f insn-output.c
  121.     $(MACHINE).md/genoutput md >insn-output.c
  122.  
  123. insn-peep.c : md $(MACHINE).md/genpeep
  124.     rm -f insn-peep.c
  125.     $(MACHINE).md/genpeep md > insn-peep.c
  126.  
  127. insn-recog.c : md $(MACHINE).md/genrecog
  128.     rm -f insn-recog.c
  129.     $(MACHINE).md/genrecog md > insn-recog.c
  130.  
  131. $(MACHINE).md/gencodes $(MACHINE).md/genconfig \
  132.       $(MACHINE).md/genemit $(MACHINE).md/genextract \
  133.       $(MACHINE).md/genflags $(MACHINE).md/genoutput \
  134.       $(MACHINE).md/genpeep $(MACHINE).md/genrecog: utils
  135.  
  136. #
  137. # Must add to depend targets for above-generated .h files, since they
  138. # may not exist when make depend is run for first time.
  139. #
  140.  
  141. $(TM).md/dependencies.mk    ! insn-config.h insn-codes.h insn-flags.h
  142.  
  143. TMINSTALLDIR    = /sprite/lib/gcc/$(TM).md
  144.  
  145. @
  146.  
  147.  
  148. 1.1
  149. log
  150. @Initial revision
  151. @
  152. text
  153. @d18 1
  154. a18 1
  155. CFLAGS          += -DTARGET_SUN4
  156. d114 2
  157. @
  158.